package com.itheima.factory;

import com.itheima.service.UserService;

public class StaticFactory {

    public static Object getBean() {

        UserService userService = new UserService() {
            @Override
            public void save() {
                System.out.println("UserService的匿名内部类对象.....");
            }
        };

        return userService;

    }
}
